﻿using StudentCouncil.DAL.DAO;
using StudentCouncil.Model;
using StudentCouncil.Model.Models;
using StudentCouncil.Model.Parameter;
using System;
using System.Collections.Generic;
using System.Text;

namespace StudentCouncil.BLL.Mgr
{
    public class MessageMgr
    {
        public static bool UpdateInfo(Message entity)
        {
            return MessageDAO.UpdateInfo(entity);
        }
            public static bool AddMessage(Message entity)
        {
            return MessageDAO.AddMessage(entity);
        }
        public static Pager<Message> GetMessageListByPage(MessageParameter parameter)
        {
            return MessageDAO.GetListByPage(parameter);
        }
        public static bool YHDeleteById(int id)
        {
            return MessageDAO.DeleteById(id);
        }
        public static bool YHBatchDelete(string ids)
        {
            string[] array = ids.Split(',');
            return MessageDAO.BatchDelete(array);
        }

        public static bool UploadMV(Message entity)
        {
            return MessageDAO.UploadMV(entity);
        }
    }
}
